package com.auto_code.gen_project;

import com.alibaba.fastjson.JSON;
import com.auto_code.gen_project.service.ProProjectService;
import com.auto_code.gen_project.vo.ProProjectVo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.Resource;


@SpringBootApplication
public class AppMainStarter {

	private static ProProjectService proProjectService;

	@Resource
	public void setProProjectService(ProProjectService service) {
		AppMainStarter.proProjectService = service;
	}

	public static void main(String[] args) {

		SpringApplication.run(AppMainStarter.class, args);
		ProProjectVo proProjectVo = new ProProjectVo();
		proProjectVo.setId(args[0]);
		proProjectVo.setProType(args[1]);
		proProjectVo.setLocalPath(args[2]);
		System.out.println(args[0]);
		System.out.println(args[1]);
		System.out.println(args[2]);
		proProjectService.genProject(proProjectVo);
		System.exit(0);
	}
}
